<template>
	<div class="app-container">
		<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
			<el-form-item label="导入批次号" prop="batchNo">
				<el-input v-model="queryParams.batchNo" placeholder="请输入导入批次号" clearable @keyup.enter.native="handleQuery" />
			</el-form-item>
			<el-form-item label="项目名称" prop="projectName">
				<el-select v-model="queryParams.projectName" placeholder="请选择项目名称" clearable>
					<el-option v-for="dict in dict.type.erecord_item_name_list" :key="dict.value" :label="dict.label" :value="dict.value" />
				</el-select>
			</el-form-item>
			<!-- <el-form-item label="社区" prop="community">
				<el-select v-model="queryParams.community" placeholder="请选择社区" clearable>
					<el-option v-for="dict in dict.type.erecord_community" :key="dict.value" :label="dict.label" :value="dict.value" />
				</el-select>
			</el-form-item> -->
			<el-form-item label="检查日期">
				<el-date-picker v-model="daterangeCreateDate" style="width: 240px" value-format="yyyy-MM-dd" type="daterange" range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
			</el-form-item>
			<el-form-item label="处理状态" prop="processStatus">
				<el-select v-model="queryParams.processStatus" placeholder="请选择处理状态" clearable>
				<el-option v-for="dict in dict.type.sys_common_status" :key="dict.value" :label="dict.label"
					:value="dict.value" />
				</el-select>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
				<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
			</el-form-item>
		</el-form>

		<el-row :gutter="10" class="mb8">

			<el-col :span="1.5">
				<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" v-hasPermi="['toiletv2:toiletImpDetailV2:remove']">删除</el-button>
			</el-col>
			<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
		</el-row>

		<el-table v-loading="loading" :data="sanitationVehicleImpDetailList" border @selection-change="handleSelectionChange">
			<el-table-column type="selection" width="55" align="center" />
			<el-table-column label="序号" align="center" prop="idx" />
			<el-table-column label="导入批次号" align="center" prop="batchNo" width="180" />
			<el-table-column label="检查日期" align="center" width="100">
				<template slot-scope="scope">
					<span>{{ parseTime(scope.row.checkDate, '{y}-{m}-{d}') }}</span>
				</template>
			</el-table-column>
			<el-table-column label="车牌号" align="center" prop="licensePlateNo" />
			<el-table-column label="车辆名称" align="center" prop="vehicleName" />
			<el-table-column label="项目名称" align="center" prop="projectName" width="250" />
			<!-- <el-table-column label="社区" align="center" prop="anomalyCount" /> -->
			<el-table-column label="检查人" align="center" prop="checkor" />
			<el-table-column label="登记表" align="center" prop="registerFormImage">
				<template slot-scope="scope">
					<image-preview :src="scope.row.registerFormImage" :width="50" :height="50" />
				</template>
			</el-table-column>
			<el-table-column label="环评类" align="center">
				<el-table-column label="整车漆面 " align="center" prop="vehiclePaintworkStatus" width="50">
					<template slot-scope="scope">
						<TickCross :value="scope.row.vehiclePaintworkStatus" />
					</template>
				</el-table-column>
				<el-table-column label="车牌清晰完整" align="center" prop="licensePlateStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.licensePlateStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="保险杠/安全护杠" align="center" prop="bumperStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.bumperStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="车容干净整洁" align="center" prop="appearanceStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.appearanceStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="垃圾密闭收运" align="center" prop="airtightTransStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.airtightTransStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="装载垃圾桶封闭" align="center" prop="cansClosedStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.cansClosedStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="驾驶员着装与行为规范" align="center" prop="dressBehaviorStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.dressBehaviorStatus" />
						</div>
					</template>
				</el-table-column>
			</el-table-column>
			<el-table-column label="车辆状况检查" align="center">
				<el-table-column label="喇叭、刮水器中控锁" align="center" prop="hornWiperStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.hornWiperStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="转向离合器变速器油门踏板制动" align="center" prop="gasPedalStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.gasPedalStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="机油刹车油变速箱油动力转向油" align="center" prop="lubricantStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.lubricantStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="燃油润滑油冷却液" align="center" prop="coolantStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.coolantStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="散热器水量" align="center" prop="waterVolumeStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.waterVolumeStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="反光板/反光锥" align="center" prop="reflectingBoardStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.reflectingBoardStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="三脚架/雪糕筒" align="center" prop="tripodStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.tripodStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="全车安全警示标识" align="center" prop="safetySignsStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.safetySignsStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="反光镜及盲区后视镜" align="center" prop="reflectingMirrorStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.reflectingMirrorStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="车载灭火器完好、有效" align="center" prop="extinguishersStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.extinguishersStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="轮胎有无开裂或鼓包" align="center" prop="tiresStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.tiresStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="油刹汽刹" align="center" prop="brakeStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.brakeStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="后视镜完好" align="center" prop="rearviewMirrorStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.rearviewMirrorStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="方向盘、仪表盘显示正常" align="center" prop="steeringWheelsStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.steeringWheelsStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="电门踏板、制动踏板正常" align="center" prop="brakePedalStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.brakePedalStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="喇叭、雨刮正常" align="center" prop="hornStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.hornStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="远光灯、近光灯、转向灯正常" align="center" prop="lampStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.lampStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="液压部分升降是否正常" align="center" prop="hydraulicElevatorStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.hydraulicElevatorStatus" />
						</div>
					</template>
				</el-table-column>
			</el-table-column>
			<el-table-column label="运行与证件检查" align="center">
				<el-table-column label="酒精测试结果" align="center" prop="alcoholTestStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.alcoholTestStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="车辆拍照齐全" align="center" prop="licensePlateStatus1" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.licensePlateStatus1" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="驾驶员证件是否有效" align="center" prop="driverLicenseStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.driverLicenseStatus" />
						</div>
					</template>
				</el-table-column>
				<el-table-column label="是否达到出车标准" align="center" prop="tripCriteriaStatus" width="50">
					<template slot-scope="scope">
						<div style="cursor: pointer;">
							<TickCross :value="scope.row.tripCriteriaStatus" />
						</div>
					</template>
				</el-table-column>
			</el-table-column>

			<el-table-column label="环评类-处理前" align="center">
				<el-table-column label="整车漆面" align="center" prop="carPaintworkImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.carPaintworkImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="车牌清晰完整" align="center" prop="licensePlateImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.licensePlateImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="保险杠/安全护杠" align="center" prop="carBumperImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.carBumperImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="车容干净整洁" align="center" prop="vehicleAppearanceImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.vehicleAppearanceImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="垃圾密闭收运" align="center" prop="airtightTransImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.airtightTransImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="装载垃圾桶密闭" align="center" prop="cansClosedImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.cansClosedImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="驾驶员着装与行为规范" align="center" prop="dressBehaviorImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.dressBehaviorImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
			</el-table-column>

			<el-table-column label="车辆状况检查-处理前" align="center">
				<el-table-column label="喇叭、刮水器中控锁" align="center" prop="hornWiperImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.hornWiperImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="转向离合器变速器油门踏板制动" align="center" prop="gasPedalImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.gasPedalImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="机油刹车油变速箱油动力转向油" align="center" prop="lubricantImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.lubricantImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="燃油润滑油冷却液" align="center" prop="coolantImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.coolantImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="散热器水量" align="center" prop="waterVolumeImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.waterVolumeImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="反光板/反光锥" align="center" prop="reflectingBoardImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.reflectingBoardImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="三脚架/雪糕筒" align="center" prop="tripodImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.tripodImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="全车安全警示标识" align="center" prop="safetySignsImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.safetySignsImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="反光镜及盲区后视镜" align="center" prop="reflectingMirrorImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.reflectingMirrorImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="车载灭火器完好、有效" align="center" prop="extinguishersImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.extinguishersImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="轮胎有无开裂或鼓包" align="center" prop="tiresImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.tiresImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="油刹汽刹" align="center" prop="brakeImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.brakeImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="后视镜完好" align="center" prop="rearviewMirrorImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.rearviewMirrorImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="方向盘、仪表盘显示正常" align="center" prop="steeringWheelsImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.steeringWheelsImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="电门踏板、制动踏板正常" align="center" prop="brakePedalImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.brakePedalImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="喇叭、雨刮正常" align="center" prop="hornImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.hornImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="远光灯、近光灯、转向灯正常" align="center" prop="lampImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.lampImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="液压部分升降是否正常" align="center" prop="hydraulicElevatorImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.hydraulicElevatorImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
			</el-table-column>

			<el-table-column label="运行与证件检查-处理前" align="center">
				<el-table-column label="酒精测试结果" align="center" prop="alcoholTestImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.alcoholTestImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="车辆拍照齐全" align="center" prop="licensePlateImageBefore1">
					<template slot-scope="scope">
						<image-preview :src="scope.row.licensePlateImageBefore1" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="驾驶员证件是否有效" align="center" prop="driverLicenseImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.driverLicenseImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
				<el-table-column label="是否达到出车标准" align="center" prop="tripCriteriaImageBefore">
					<template slot-scope="scope">
						<image-preview :src="scope.row.tripCriteriaImageBefore" :width="50" :height="50" />
					</template>
				</el-table-column>
			</el-table-column>

			<el-table-column label="备注" align="center" prop="remark" />
			<el-table-column label="处理状态" align="center" prop="processStatus">
				<template slot-scope="scope">
					<dict-tag :options="dict.type.sys_common_status" :value="scope.row.processStatus" />
				</template>
			</el-table-column>
			<el-table-column label="处理信息" align="center" prop="processMsg" />
			<el-table-column label="创建人" align="center" prop="createBy" />
			<el-table-column label="创建时间" align="center" prop="createTime" width="180">
				<template slot-scope="scope">
					<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
				</template>
			</el-table-column>

		</el-table>

		<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />

		<!-- 添加或修改V2市政公厕管养对话框 -->
		<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
			<el-form ref="form" :model="form" :rules="rules" label-width="80px">
			</el-form>
			<div slot="footer" class="dialog-footer">
				<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
				<el-button @click="cancel">取 消</el-button>
			</div>
		</el-dialog>
	</div>
</template>

<script>
	import {
		listSanitationVehicleImpDetail,
		delSanitationVehicleImpDetail
	} from "@/api/standingbook/sanitationVehicle";

	import TickCross from "@/views/components/tickCross";


	export default {
		name: "ToiletImpDetailV2",
		dicts: ['erecord_item_name_list', 'erecord_community','sys_common_status'],
		components: {
			TickCross
		},
		data() {
			return {
				// 按钮loading
				buttonLoading: false,
				// 遮罩层
				loading: true,
				// 选中数组
				ids: [],
				// 非单个禁用
				single: true,
				// 非多个禁用
				multiple: true,
				// 显示搜索条件
				showSearch: true,
				// 总条数
				total: 0,
				// 环卫作业车明细列表数据
				sanitationVehicleImpDetailList: [],
				// 弹出层标题
				title: "",
				// 是否新增
				isAdd: true,
				// 是否显示弹出层
				open: false,
				// 查询参数
				queryParams: {
					pageNum: 1,
					pageSize: 10,
					batchNo: undefined,
					projectName: undefined,
					checkDateBegin: undefined,
					checkDateEnd: undefined,
					processStatus: undefined
				},
				// 检查日期时间范围
				daterangeCreateDate: [],
				inspectItems: [],
				// 表单参数
				form: {},
				// 表单校验
				rules: {}
			};
		},
		created() {
			const batchNo = this.$route.params && this.$route.params.batchNo;
			if (batchNo) {
				this.queryParams.batchNo = batchNo;
			}
			this.getList();
		},
		methods: {
			/** 环卫作业车明细列表 */
			getList() {
				this.loading = true;
				if (null != this.daterangeCreateDate && '' != this.daterangeCreateDate) {
					this.queryParams["checkDateBegin"] = this.daterangeCreateDate[0];
					this.queryParams["checkDateEnd"] = this.daterangeCreateDate[1];
				} else {
					this.queryParams["checkDateBegin"] = ''
					this.queryParams["checkDateEnd"] = ''
				}
				listSanitationVehicleImpDetail(this.queryParams).then(response => {
					this.sanitationVehicleImpDetailList = response.rows.map((item, index) => {
						//前端添加序号
						this.$set(item, 'idx', (this.queryParams.pageNum - 1) * this.queryParams.pageSize + (index + 1))
						return item
					});
					this.total = response.total;
					this.loading = false;
				});
			},
			// 取消按钮
			cancel() {
				this.open = false;
				this.reset();
			},
			// 表单重置
			reset() {
				this.form = {
					id: undefined,
					batchNo: undefined,
					createDate: undefined,
					community: undefined,
					toiletName: undefined,
					toiletCode: undefined,
					abnormalCount: undefined,
					opened: undefined,
					logo: undefined,
					ventilate: undefined,
					handBasin: undefined,
					handry: undefined,
					handSanitizer: undefined,
					waterFaucet: undefined,
					masks: undefined,
					floor: undefined,
					wallspace: undefined,
					ceiling: undefined,
					lights: undefined,
					innerClean: undefined,
					cubicle: undefined,
					cubicleTissue: undefined,
					toilet: undefined,
					roomClean: undefined,
					flushing: undefined,
					grabar: undefined,
					hardware: undefined,
					childHandBasin: undefined,
					barrierfreeFacilities: undefined,
					babyCareRoom: undefined,
					owner: undefined,
					phoneNo: undefined,
					cleanCount: undefined,
					remark: undefined,
					processStatus: undefined,
					processMsg: undefined,
					createTime: undefined,
					createBy: undefined,
					updateTime: undefined,
					updateBy: undefined,
					delFlag: undefined
				};
				this.resetForm("form");
			},
			/** 搜索按钮操作 */
			handleQuery() {
				this.queryParams.pageNum = 1;
				this.getList();
			},
			/** 重置按钮操作 */
			resetQuery() {
				this.daterangeCreateDate = []
				this.resetForm("queryForm");
				this.handleQuery();
			},
			// 多选框选中数据
			handleSelectionChange(selection) {
				this.ids = selection.map(item => item.id)
				this.single = selection.length !== 1
				this.multiple = !selection.length
			},
			/** 新增按钮操作 */
			handleAdd() {
				this.reset();
				this.open = true;
				this.isAdd = true;
				this.title = "添加V2市政公厕管养";
			},
			/** 修改按钮操作 */
			handleUpdate(row) {
				this.loading = true;
				this.reset();

			},
			/** 提交按钮 */
			submitForm() {

			},
			/** 删除按钮操作 */
			handleDelete(row) {
				const ids = row.id || this.ids;
				this.$modal.confirm('是否确认删除数据项？').then(() => {
					this.loading = true;
					return delSanitationVehicleImpDetail(ids);
				}).then(() => {
					this.loading = false;
					this.getList();
					this.$modal.msgSuccess("删除成功");
				}).catch(() => {}).finally(() => {
					this.loading = false;
				});
			},
			/** 导出按钮操作 */
			handleExport() {
				this.download('toiletv2/toiletImpDetailV2/export', {
					...this.queryParams
				}, `市政公厕管养2.0-${new Date().getTime()}.xlsx`)
			}
		}
	};
</script>
<style rel="stylesheet/scss" lang="scss">
	.el-table .cell {
		padding: 0;
	}

	.el-table--medium .el-table__cell {
		padding: 0;
	}
</style>